# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        
        # Adding field 'Protocol.path'
        db.add_column('protocol_protocol', 'path', self.gf('django.db.models.fields.FilePathField')(default='', path='/Users/zarrar/Dropbox/sites/accession/filedb/', max_length=200, blank=True), keep_default=False)

        # Adding field 'Protocol.path_type'
        db.add_column('protocol_protocol', 'path_type', self.gf('django.db.models.fields.PositiveSmallIntegerField')(default=0, blank=True), keep_default=False)


    def backwards(self, orm):
        
        # Deleting field 'Protocol.path'
        db.delete_column('protocol_protocol', 'path')

        # Deleting field 'Protocol.path_type'
        db.delete_column('protocol_protocol', 'path_type')


    models = {
        'lab.lab': {
            'Meta': {'object_name': 'Lab'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'path': ('django.db.models.fields.FilePathField', [], {'path': "'/Users/zarrar/Dropbox/sites/accession/filedb/'", 'max_length': '200', 'blank': 'True'}),
            'path_type': ('django.db.models.fields.PositiveSmallIntegerField', [], {'blank': 'True'})
        },
        'protocol.committee': {
            'Meta': {'object_name': 'Committee'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '20'})
        },
        'protocol.institution': {
            'Meta': {'object_name': 'Institution'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '80'})
        },
        'protocol.protocol': {
            'Meta': {'object_name': 'Protocol'},
            'committee': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['protocol.Committee']"}),
            'date_added': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'date_updated': ('django.db.models.fields.DateField', [], {'auto_now': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'institution': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['protocol.Institution']"}),
            'lab': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['lab.Lab']"}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
            'path': ('django.db.models.fields.FilePathField', [], {'path': "'/Users/zarrar/Dropbox/sites/accession/filedb/'", 'max_length': '200', 'blank': 'True'}),
            'path_type': ('django.db.models.fields.PositiveSmallIntegerField', [], {'blank': 'True'}),
            'protocol_status': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            'reference_code': ('django.db.models.fields.CharField', [], {'max_length': '100'})
        }
    }

    complete_apps = ['protocol']
